//
//  CPMainController.m
//  ChinaPoem
//
//  Created by 赵俊明 on 2019/3/4.
//  Copyright © 2019 赵俊明. All rights reserved.
//

#import "CPMainController.h"

@implementation CPMainController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
//    UIImageView *back = [[UIImageView alloc] initWithFrame:self.view.bounds];
//    back.contentMode = UIViewContentModeScaleAspectFill;
//    back.clipsToBounds = YES;
//    back.image = [UIImage imageNamed:[NSString stringWithFormat:@"%02d",kRAND(0, 15)]];
//    [self.view addSubview:back];
}

- (void)setRImage:(NSString *)RImage
{
    _RImage = RImage;
     self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:RImage] style:UIBarButtonItemStylePlain target:self action:@selector(cp_rightBtn)];
}

- (void)setRTitle:(NSString *)RTitle
{
    _RTitle = RTitle;
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:RTitle style:UIBarButtonItemStylePlain target:self action:@selector(cp_rightBtn)];
}

- (void)setLImage:(NSString *)LImage
{
    _LImage = LImage;
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:LImage] style:UIBarButtonItemStylePlain target:self action:@selector(cp_leftBtn)];
}

- (void)setLTitle:(NSString *)LTitle
{
    _LTitle = LTitle;
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:LTitle style:UIBarButtonItemStylePlain target:self action:@selector(cp_leftBtn)];
}

- (void)cp_leftBtn
{
    
}

- (void)cp_rightBtn
{
    
}

@end
